﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Comswing.Business.Core;
using Comswing.Business.Entities;
using Comswing.Website.Models.HomeViewModels;
using Comswing.Website.Infrastructure;

namespace Comswing.Website.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            if (SessionState.LoggedInUser == null)
            {
                return RedirectToAction("Index", "Account");
            }
            return View(new HomeIndexViewModel());
        }
    }
}
